#ifndef _WIFI_CREDENTIAL_DATA_STORE_H_
#define _WIFI_CREDENTIAL_DATA_STORE_H_

#include <string>
#include <deque>
#include <memory>
#include "XmlModel.h"

struct WifiCredential{
    WifiCredential(const char* n, const char* p)
        : ssid(n), pass(p) {}
    std::string ssid;
    std::string pass;
};

class WifiCredentialDataStore : public XmlModel {
public:
    WifiCredentialDataStore(std::string path) : XmlModel(path) {}
    
    virtual void save();
    virtual void load();
    
    std::deque<std::shared_ptr<WifiCredential> > m_credential_list;
};

#endif
